package com.woniu.job.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author song
 * @since 2019-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Category对象", description="")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    private String name;

    @TableField("parentId")
    private String parentId;

    private String status;

    public Category id(String id)
    {
        this.id = id;
        return this;
    }

    public Category name(String name)
    {
        this.name = name;
        return this;
    }

    public Category parentId(String parentId)
    {
        this.parentId = parentId;
        return this;
    }

    public Category status(String status)
    {
        this.status = status;
        return this;
    }
}
